package folderLogger.outputFile;

public class OutputConsoleWriter extends OutputWriter {

	public OutputConsoleWriter(OutputFileFormat type, String resourcesFolder)
	{
		super(type, resourcesFolder);
	}
	
	@Override
	public int InitializeIndexFile() {
		outputFile = System.out;
		return 0;
	}

	@Override
	public void close() {
		
	}

	@Override
	protected boolean ExportDataStream(String currentName, String currentData) {
		outputFile = System.out;
		outputFile.println(String.format("*** %s ***\n", currentName));
		outputFile.println(String.format("%s\n",currentData));
		return true;
	}

}
